﻿namespace NTLib.Core.UTest.Configuration.DataSample
{
    using Core.Configuration;
    using Core.Configuration.Attributes;
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;

    /// <summary>
    /// 
    /// </summary>
    /// <seealso cref="NTLib.Core.Configuration.BaseConfigurable" />
    public abstract class ToBeConfigured : BaseConfigurable
    {
        #region Fields

        private ConfigurationCollection _collection;

        #endregion

        #region Properties

        /// <summary>
        /// Gets the configuration.
        /// </summary>
        public ConfigurationCollection Config
        {
            get { return this._collection; }
        }

        #endregion

        #region Methods

        protected override void OnLoadConfig(ConfigurationCollection configs)
        {
            this._collection = configs;
        }

        protected override void OnResetConfig()
        {
            this._collection = null;
        }

        #endregion
    }
}
